
import pickle

class xChamp(object):
    def __init__(self,**args):
        self.Nom = None
        self.Type = None
        self.Taille = None
        self.Precision = None
        if ('nom' in args.keys()):
            self.Nom=args['nom']
        if ('type' in args.keys()):
            self.Type=args['type']
        if ('taille' in args.keys()):
            self.Taille=args['taille']
        if ('precision' in args.keys()):
            self.Precision=args['precision']
        pass
    
class xTable(object):
    def __init__(self,**args):
        self.Nom=None
        self.User=None
        self.ListeChamps=[]
        if ('user' in args.keys()):
            self.User=args['user']
        if ('nom' in args.keys()):
            self.Nom=args['nom']
        if ('listechamps' in args.keys()):
            self.ListeChamps=args['listechamps']
        pass

class xListeEnregistrement(objet):
        self.ListeNomChamps = None
        self.ListeEnregistrement = None
        if ('listeenregistrement' in args.keys()):
            self.ListeEnregistrement=args['listeenregistrement']
        if ('listenomchamps' in args.keys()):
            self.ListeNomChamps=args['listenomchamps']